package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by Marco on 16-11-11.
 */
@Table(name = "merchant_order_logistics_log")
@Entity
@DynamicUpdate
@DynamicInsert
public class MerchantOrderLogisticsLog extends IDEntityMall {

    @Column(columnDefinition = "varchar(100) comment '订单号'")
    private String orderNum;
    @Column(columnDefinition = "bigint comment '客户id'")
    private Long customerId;
    @Column(columnDefinition = "bigint comment '商户id'")
    private Long merchantId;
    @Column(columnDefinition = "varchar(15) comment '来源'")
    private String sourceType;
    @Column(columnDefinition = "datetime comment '操作时间'")
    private Date dateQuery;
    @Column(columnDefinition = "varchar(5000) comment '备注'")
    private String remark;
    @Column(columnDefinition = "varchar(10) comment '状态'")
    private String status;

    public String getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(String orderNum) {
        this.orderNum = orderNum;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    public Date getDateQuery() {
        return dateQuery;
    }

    public void setDateQuery(Date dateQuery) {
        this.dateQuery = dateQuery;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "MerchantOrderLogisticsLog{" +
                "orderNum='" + orderNum + '\'' +
                ", id=" + id +
                ", customerId=" + customerId +
                ", dateCreated=" + dateCreated +
                ", merchantId=" + merchantId +
                ", sourceType='" + sourceType + '\'' +
                ", lastUpdated=" + lastUpdated +
                ", dateQuery=" + dateQuery +
                ", remark='" + remark + '\'' +
                ", isDelete=" + isDelete +
                ", status='" + status + '\'' +
                ", version=" + version +
                '}';
    }
}
